﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true"
    CodeFile="CommissionReport.aspx.cs" Inherits="CommissionReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <h3 class="page-title">
            Commission Report<small></small>
        </h3>
        <div class="alert alert-danger" id="Div1" runat="server" style="display: none;">
        </div>
        <div class="alert alert-success" id="Div2" runat="server" style="display: none;">
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Commission Report</div>
                        <div class="actions">
                            <span id="spScore" style="font-weight: bold; font-size: x-large;"></span>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <asp:UpdatePanel ID="updPanelBetting" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div class="alert alert-danger" id="layerError" runat="server" style="display: none;">
                                </div>
                                <div class="alert alert-success" id="layerSuccess" runat="server" style="display: none;">
                                </div>
                                <div class="form-horizontal form-view">
                                    <div class="row-fluid" style="display: none;">
                                        <div class="span12">
                                            <div class="control-group">
                                                <label class="control-label">
                                                    Match Type <span class="required">*</span></label>
                                                <div class="controls">
                                                    <asp:HiddenField ID="hdnBettingId" runat="server" />
                                                    <asp:HiddenField ID="hdnAdminId" runat="server" />
                                                    <asp:HiddenField ID="hdnClientId" runat="server" />
                                                    <asp:DropDownList ID="drpMatchType" runat="server" OnSelectedIndexChanged="drpMatchType_SelectedIndexChanged"
                                                        AutoPostBack="true">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter match type"
                                                        InitialValue="0" ValidationGroup="Betting" CssClass="required" ControlToValidate="drpMatchType"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row-fluid">
                                        <div class="span12">
                                            <div class="control-group">
                                                <label class="control-label">
                                                    Select Match<span class="required">*</span></label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drpMatch" runat="server" OnSelectedIndexChanged="drpMatch_SelectedIndexChanged"
                                                        AutoPostBack="true">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter match"
                                                        InitialValue="0" ValidationGroup="Betting" CssClass="required" ControlToValidate="drpMatch"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                                <div class="row-fluid">
                                    <div class="span6">
                                        <asp:GridView ID="grdCommission" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                            ForeColor="#333333" GridLines="None" Width="100%">
                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                            <Columns>
                                                <asp:BoundField DataField="ClientName" HeaderText="Client Name" HeaderStyle-HorizontalAlign="Left" />
                                                <asp:BoundField DataField="Amount" HeaderText="Commission Chips" HeaderStyle-HorizontalAlign="Left" />
                                            </Columns>
                                            <EditRowStyle BackColor="#999999" />
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                        </asp:GridView>
                                    </div>
                                </div>
                                </asp:UpdatePanel>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
